<?php 


$str =file_get_contents("https://www.lagou.com/"); //要操作的字符串




$preg = "/<a href=\"(https:\/\/www\.lagou\.com\/jobs\/\d{7}\.html)\" target=\"_blank\"/";//规则 //原子组


$c = preg_match_all($preg, $str , $out);

var_dump($c);
var_dump($out);







 ?>